import Vue from 'vue'
import App from './App'
import router from './router'
import store from './vuex'
import wx from 'weixin-js-sdk'
import VueLazyload from 'vue-lazyload'

//import VueScroller from 'vue-scroller'
Vue.config.productionTip = false
//import css from '@/assets/css/bootstrap.min.css';
/* eslint-disable no-new */
import { BusPlugin,DatetimePlugin,AlertPlugin, ToastPlugin,ConfirmPlugin,LoadingPlugin,WechatPlugin,ConfigPlugin} from 'vux'
import { sync } from 'vuex-router-sync'
//import VueDragTree from 'vue-drag-tree'
//Vue.use(DragList)
//Vue.component('vue-drag-tree', VueDragTree)
/*点击延迟*/
const FastClick = require('fastclick')
FastClick.attach(document.body)
Vue.use(AlertPlugin)
Vue.use(ToastPlugin)
Vue.use(BusPlugin)
Vue.use(ConfirmPlugin)
Vue.use(VueLazyload)
Vue.use(LoadingPlugin)
Vue.use(WechatPlugin)

Vue.use(ConfigPlugin, {
  $layout: 'VIEW_BOX'
})
//Vue.use(VueScroller)
sync(store, router)
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app');
